<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="jformInnerMailList" checkbox="true" fitColumns="true" title="待审核消息" actionUrl="jformInnerMailController.do?indexAuditDatagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id" hidden="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="提示内容"  field="title"  query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="日期"  field="sendTime" queryMode="single"  width="120"></t:dgCol>
<%--    <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt funname="goDetail(id)" title="查看"></t:dgFunOpt> --%>   
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/buss/core/jformInnerMailList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#jformInnerMailListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#jformInnerMailListtb").find("input[name='updateDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
 function goDetail(id,index){
	 
	 	var url = "jformInnerMailController.do?goDetail";
	 	var row = $('#jformInnerMailList').datagrid("getRows")[index];  
		url = url +'&id='+row.id+"&mailid="+row.mailId;
		createdetailwindow("查看信件", url);
 }
 
 
 </script>